package com.chixing.day10_hashcode_exception;

import java.util.Locale;

public class ExceptionDemo {
    public static void main(String[] args) {
        int[] a ={10,20,30};
      //  System.out.println(a[4]); //.ArrayIndexOutOfBoundsException

        String s = null;
        //s.length();  //NullPointerException 空指针异常:null 调用fun()、null调用属性
       // fun(s);
    }

    public static void fun(String src){
      //  src = src.toLowerCase();  //NullPointerException
    }
}
